FROM openjdk:8-jre-slim

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD sentinel-dashboard.jar /app.jar

ENV JAVA_OPTS=""
ENV PARAMS=""

ENTRYPOINT ["sh","-c","java $JAVA_OPTS -jar /app.jar $PARAMS"]